package com.teng.mylibrary.widget

import android.view.*
import com.teng.mylibrary.base.BaseDialog
import com.teng.mylibrary.databinding.DialogInteractionBinding

/**
 * Description:  内容提示操作弹窗
 * Author:       liuteng
 * CreateDate:   2022/3/18 16:36
 * UpdateRemark: 更新说明
 */
class InteractionDialog(private val message: String) :
    BaseDialog<DialogInteractionBinding>(DialogInteractionBinding::inflate) {

    override fun initView(view: View?) {
        binding.tvContent.text = message
        binding.btnCancel.setOnClickListener {
            dismiss()
        }
        binding.btnOk.setOnClickListener {
            mOnConfirmClickListener?.invoke()
            dismiss()
        }
    }

    override fun initData() {
    }

}